package com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.b_lazy.c_thread_unsafe.test.thread;

import com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.b_lazy.c_thread_unsafe.LazySingleton;

/**
 * @description:
 * @date: 2023/3/19 12:58.
 * @version: 1.0
 */
public class LazyThread implements Runnable {
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ignored) {
        }
        LazySingleton lazySingleton = LazySingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" + lazySingleton);
    }
}
